import 'package:flutter/material.dart';

class OrderDetail extends StatelessWidget {
  const OrderDetail({super.key});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: const Text('订单详情页'),
      ),
      body: Column(
        children: [
          GestureDetector(
            
            child: const Text('返回上一页--文本'),
            onTap: (){
              Navigator.pop(context);
            },
          ),
          ElevatedButton(onPressed: (){
            Navigator.pop(context);
          }, child: const Text('返回上一页'),)
        ],
      ),
    );
  }
}
